package com.xiaoyun.rollutil.controller;

import com.xiaoyun.rollutil.entity.RubbishInfo;
import com.xiaoyun.rollutil.service.IRubbishService;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: XiaoYun461
 * @Date: 2021/12/2 22:25
 */
@RestController
@AllArgsConstructor
public class RubbishController {

    private final IRubbishService rubbishService;


    @GetMapping("getRubbish")
    public RubbishInfo getRubbishInfo(String name) {
        return rubbishService.getRubbishInfo(name);
    }
}
